package Combination;

/**
 * @author duanzhizhou
 * @date 2024/10/17
 */
public class ConcreteCompany extends Company{
    
    private char[] ss;
    
    public ConcreteCompany(String name) {
        super(name);
        ss = new char[]{'b'};
    }
    
    @Override
    public void add(Company company) {
        child.add(company);
    }
    
    @Override
    public void remove(Company company) {
        child.remove(company);
    }
    
    @Override
    public void func() {
        for (Company item : child) {
            item.func();
        }
    }
}
